/*
 * FormFillerField.h
 *
 *  Created on: 27/01/2009
 *      Author: desadoc
 */

#ifndef FORMFILLERFIELD_H_
#define FORMFILLERFIELD_H_

#include <QGroupBox>
#include <QLineEdit>

#include "FormEditor/FormQuestion.h"

class FormFillerField : public QGroupBox
{
	Q_OBJECT

public:

	FormFillerField(const QString& question, TIPOS t);

	FormFillerField* getEmptyCopy(void);

	QString getQuestion(void);
	QString getAnswer(void);
	TIPOS getType(void);

private:

	QString question;
	QLineEdit* answer;
	TIPOS tp;

public:

	void setAnswer(QString s)
		{
			answer->setText(s);
		}
};

#endif /* FORMFILLERFIELD_H_ */
